package com.cloud.lawcase;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableDiscoveryClient
@SpringBootApplication
@ServletComponentScan
@EnableCaching
@EnableFeignClients
@EnableHystrix
@EnableAspectJAutoProxy
@EnableTransactionManagement
@EnableSwagger2
@MapperScan(basePackages = "com.cloud.lawcase.api.mapper")
public class LawCaseApplication {
	public static void main(String[] args) {
		new SpringApplicationBuilder(LawCaseApplication.class).web(true).run(args);
	}
}
